package com.example.mykotlin.model.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotNull

@Schema(name = "InsertUserRolesDTO", title = "给用户分配多个角色")
data class InsertUserRolesDTO(
    @Schema(title = "用户的唯一标识符")
    @field:Min(value = 1, message = "主键不能小于1")
    @field:NotNull(message = "不能为空")
    var userId: Long? = null,

    @Schema(title = "需要增加的角色列表")
    var addRoleList: MutableSet<String>? = null,

    @Schema(title = "需要移除的角色列表")
    var removeRoleList: MutableSet<String>? = null,
)